import com.zeng.service.UserService;
import com.zeng.service.UserServiceiml;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author zeng
 * @data 2021/06/10 18:13
 */
public class Mytest {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationcontext.xml");
        //动态代理接口，注意为接口
        UserService userService = context.getBean("service", UserService.class);
        userService.delete();

    }
}
